Skip to content

Fix C++17 lambda capture breaking HIP server builds - #939

Merged
0xShug0 merged 1 commit into
mainfrom
fix/938-server-cxx17-capture
Oct 16, 2026
Merged

0xShug0 merged 1 commit into
mainfrom
fix/938-server-cxx17-capture

Conversation

@0xShug0

@0xShug0 0xShug0 commented Oct 16, 2026

Copy link
Copy Markdown
Owner

Summary

Avoid capturing a structured-binding variable in the parallel server unload lambda, which is not valid C++17.

Apply the fix suggested by the reporter: iterate over the entry and declare ordinary id and model locals. Locking, queueing, deduplication and unload behavior are unchanged. No workflow or build-flag changes.

Fixes #938.

Validation

  • Reproduced the original error by checking the actual unmodified server translation unit with strict Clang C++17.
  • Patched translation unit passes the same check.
  • Clean CPU-only Debug build with Clang 12, -std=c++17 -Wpedantic -pedantic-errors: full model set, CLI, server, GGUF tool and enabled unit-test targets all compile.
  • Parallel server lifecycle test passes in both the existing Debug build and the clean Clang CPU build.
  • CPU-only server starts for device listing and reports the CPU backend.
  • HIP/ROCm toolchain is unavailable locally; no HIP inference claim.

@0xShug0
0xShug0 merged commit 337d429 into main Oct 16, 2026
11 checks passed
@0xShug0
0xShug0 deleted the fix/938-server-cxx17-capture branch October 16, 2026 21:40
cunba-ai pushed a commit to cunba-ai/audio.cpp that referenced this pull request Oct 28, 2026
…precision + WebUI voice listing + RKNN docs

Upstream commits 0fdc572..498d4ae (14):
- fix(build): gate family tests on the linked model set (0xShug0#925)
- f5_tts CPU passes inside graph pool ceiling; evicted graphs freed (0xShug0#924)
- Qwen3-TTS spec description trim; Inflect v2 ONNX prefix strip (0xShug0#933)
- CPU Fish DAC reference-encoder tensor layouts (0xShug0#936)
- Fish codec CUDA encoder precision aligned with Python (0xShug0#937)
- C++17 lambda capture fix in parallel server unload (0xShug0#939)
- fix(build): model unit tests compile their own family sources (0xShug0#932)
- fix(build): split compiled-in model specs into 16KB literals (0xShug0#934)
- webui: list/preview server voices (0xShug0#941,0xShug0#943); RKNN docs + IOVA ceiling (0xShug0#945,0xShug0#949)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: HIP server build fails with C++17 structured-binding lambda capture

1 participant